package com.delayqueue.core.netty.config;

import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Setter
@Getter
@Configuration
@ConfigurationProperties(prefix = "netty")
public class NettyConfig {

    @Setter(value = AccessLevel.NONE)
    @Getter(value = AccessLevel.NONE)
    public static EventLoopGroup worker = new NioEventLoopGroup();
    private NettyMasterConfig master;
}
